// OGoMojo
// Whitemice.MOGI.ICache
// License: LGPL
// Copyright: Whitemice Consulting, 2006
// Author(s): Adam Tauno Williams (awilliam@whitemice.org)
using System;
using System.Collections;

namespace Whitemice.MOGI 
{
	public interface ICache 
	{
		void Purge();
		uint Flush();
		IDocument Get(string name);
		IDocument Put(IDocument document);
		ArrayList Put(string criteria, ArrayList results);
		bool Contains(string document);
		ArrayList Documents(DocumentType type);
		ArrayList Search(string criteria);
	}
}